package app.modules.security.persistence.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jasmine.security.rbac.model.SecRoleFunctionRelation;
import org.apache.ibatis.annotations.Param;

/**
 * @author mh.z
 */
public interface RoleFunctionRelationMapper extends BaseMapper<SecRoleFunctionRelation> {

    /**
     * 删除指定功能的所有角色分配分析
     *
     * @param functionId
     */
    @InterceptorIgnore(tenantLine = "true")
    void deleteByFunctionId(@Param("functionId") Long functionId);
}
